<%@ page contentType="text/html;charset=UTF-8" %>
<html>
  <head>    
    <link rel="stylesheet" href="${createLinkTo(dir:'css',file:'buttons.css')}" />
    <link rel="stylesheet" href="${createLinkTo(dir:'css',file:'principal.css')}" />
    <title><g:message code="index.title"/></title>
    <script>
      document.oncontextmenu = function(){return false}
      function abrirIpnet(){
        var w=screen.width-10;
        var h=screen.height-120;
        window.open('/${grailsApplication.metadata['app.name']}/principal/','','top=0,left=0,width='+w+',height='+h+',menubar=no,location=yes,directories=no,toolbar=no,status=yes,resizable=no');
        return false;
      }
      function ready(){        
        var h=(document.body.clientHeight/2)+110
        var context='<div align="center" style="padding-top:'+h+'px">'+
                    '<input type="button" class="B__1" onclick="return abrirIpnet()" value="${message(code:"index.entrar")}"/>'+
                    '</div>';
        document.getElementById('principal').innerHTML=context
      }
    </script>
  </head>
  <body onload="ready()" onresize="ready()">    
    <div class="imgppal" id="principal"></div>
  </body>
</htm>